﻿using GameView.Models;
using System.Text.Json;
using System.Text.Json.Serialization;

namespace GameView.Services.Comment
{
    public class StaticValues
    {
        public static void Clear()
        {
            LoginInfo = null;
            Token = null;
            MenuAll = [];
        }

        public static LoginOutDto LoginInfo { get; set; }
        public static string Token { get; set; }
        public static List<MenuEntity> MenuAll { get; set; }

        public static readonly JsonSerializerOptions JsonOptions = new()
        {
            PropertyNameCaseInsensitive = true,
            DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull
        };
    }
}